package com.ihrm.modules.sys.dao;

import com.ihrm.modules.sys.entity.RoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author gaogzhen
 * @email gaogzhen@foxmail.com
 * @date 2020-12-17 20:56:33
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity> {
	List<RoleEntity> queryByUserId(String userId);
	RoleEntity queryById(String id);

    int assignPerms(Map<String, Object> map);

	void deletePermsByRoleId(String id);
}
